import Vue from "vue";
import { Input, Select } from "ant-design-vue";

const renderComponent = {
  Input,
  Select,
};

export default (content, type) => {
  if (renderComponent[type]) {
    return Vue.component(renderComponent[type].name, renderComponent[type]);
  }
  return false;
};
